package org.meb.lotrlcg.db.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import org.hibernate.annotations.ResultCheckStyle;
import org.hibernate.annotations.SQLInsert;
import org.hibernate.annotations.SQLUpdate;

@Getter
@Setter
@Entity
@Table(name = "vw_scenario")
@SQLInsert(callable = true, check = ResultCheckStyle.NONE, sql = "call prc_ins_scenario_loc(?,?,?,?,?,?,?)")
@SQLUpdate(callable = false, check = ResultCheckStyle.NONE, sql = "call prc_upd_scenario_loc(?,?,?,?,?,?,?,?)")
public class Scenario {

	@Column(insertable = false, updatable = false)
	boolean localized;
	
	@Column(insertable = false, updatable = false)
	private String crstDescription;

	@Column(insertable = false, updatable = false)
	private String crstName;

	@Column(insertable = false, updatable = false)
	private String crstSymbol;

	@Column(insertable = false, updatable = false)
	private String crstTechName;

	@Column(insertable = false, updatable = false)
	private String cycleCode;

	@Column(insertable = false, updatable = false)
	private String cycleDescription;

	@Column(insertable = false, updatable = false)
	private String cycleName;

	@Column(insertable = false, updatable = false)
	private String cycleTechName;
	
	private Long crstId;
	private String description;
	private Integer difficulty;
	private Integer sequence;
	private String techName;
	private String name;	
	private Long version;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	public Scenario() {
	}

	public Scenario(Long id) {
		this.id = id;
	}
}
